<?php
/* @var $this UsersController */
/* @var $model User */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'user_func_id'); ?>
		<?php echo $form->textField($model,'user_func_id'); ?>
		<?php echo $form->error($model,'user_func_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_perf_id'); ?>
		<?php echo $form->textField($model,'user_perf_id'); ?>
		<?php echo $form->error($model,'user_perf_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_login'); ?>
		<?php echo $form->textField($model,'user_login',array('size'=>45,'maxlength'=>45)); ?>
		<?php echo $form->error($model,'user_login'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_senha'); ?>
		<?php echo $form->textField($model,'user_senha',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'user_senha'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_dtcadastro'); ?>
		<?php echo $form->textField($model,'user_dtcadastro'); ?>
		<?php echo $form->error($model,'user_dtcadastro'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_mudarsenha'); ?>
		<?php echo $form->textField($model,'user_mudarsenha',array('size'=>1,'maxlength'=>1)); ?>
		<?php echo $form->error($model,'user_mudarsenha'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_conterrosenha'); ?>
		<?php echo $form->textField($model,'user_conterrosenha',array('size'=>1,'maxlength'=>1)); ?>
		<?php echo $form->error($model,'user_conterrosenha'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'user_ativo'); ?>
		<?php echo $form->textField($model,'user_ativo',array('size'=>1,'maxlength'=>1)); ?>
		<?php echo $form->error($model,'user_ativo'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->